cmake_minimum_required(VERSION 3.14)
project(InfiniteHomework)

set(CMAKE_CXX_STANDARD 98)

set(Build_Src src/Fast_sort_ver_1.c)

add_executable(out  src/Shaker_sort_ver_1.c) #如果不指明文件的话,CLion无法识别

add_custom_command( TARGET out POST_BUILD
                    COMMAND python test/Ju.py ${CMAKE_CURRENT_BINARY_DIR}/out${CMAKE_EXECUTABLE_SUFFIX} ${Build_Src}
                    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
                    USES_TERMINAL)